// TOP

module TOP (
    input  wire clk,rst_n,
    inout  wire [1:0] HDB3code,
    output wire out,
    output wire random_tp
);



random random(
.clk(clk),
.rst_n(rst_n),
.out(random_tp)
);

HDB3_encoder HDB3_encoder(
.clk(clk),
.rst_n(rst_n),
.code_in(random_tp),
.code_out(HDB3code)

);

HDB3_decoder HDB3_decoder(
.clk(clk),
.rst_n(rst_n),
.in(HDB3code),
.out(out)
);


endmodule //TOP